libxl: config parser: print warning for apparent arbitrary python
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 11 Jan 2011 19:31:41 +0000 (19:31 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 11 Jan 2011 19:31:41 +0000 (19:31 +0000)
commit54fbaf446bb350aff4dd5c4b0f44557186dd7d31
tree935bc0f929a867e75ad01a6d21cc97ea8f1c02da
parent3e58e5d9c1fdc16dee74b891403f30e987965877
libxl: config parser: print warning for apparent arbitrary python

The characters - + . ( ) : are not legal in xl config files but are
valid Python and use of at least one of them is almost essential for
writing arbitrary Python in the config file.

So if we see one of these during lexing, note it, and then after the
parse is complete if it failed we print a special extra warning.

Currently this warning refers to the nonexistent wiki page
  http://wiki.xen.org/xenwiki/PythonInXlConfig
which will have to be written (and/or given a better name) before the
actual 4.1 release.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxlu_cfg.c
tools/libxl/libxlu_cfg_i.h
tools/libxl/libxlu_cfg_l.c
tools/libxl/libxlu_cfg_l.h
tools/libxl/libxlu_cfg_l.l
tools/libxl/libxlu_internal.h